作者:祢好世界末日 | 来源:互联网 | 2023-10-12 02:22
This PR adds a new lint
which checks for
casts between raw pointers without changing its mutability and suggest replacing it with
. Closes #5890.
Open question: should this lint be
or
? I set it
for now because the original post suggests using it, but I think the lint also fits well to
.
changelog: New lint
该提问来源于开源项目:rust-lang/rust-clippy
:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing a6b72d378f71ed8d2c6849d97571a4c1d8e27afa to master...